package com.kakavr.emp.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.joda.time.DateTime;
import org.springframework.stereotype.Service;

import com.kakavr.base.service.BaseService;
import com.kakavr.emp.dao.IDeviceAdminDao;
@Service
public class DeviceAdminService extends BaseService implements
		IDeviceAdminService {
	@Resource
	private IDeviceAdminDao deviceAdminDao;

	@Override
	public void addDevice(Map<String, Object> map) {
		map.put("createTime", DateTime.now().toDate());
		deviceAdminDao.addDevice(map);
	}

	@Override
	public void updateDevice(Map<String, Object> map) {
		deviceAdminDao.updateDevice(map);
	}

	@Override
	public List<Map<String, Object>> selectDeviceList(Map<String, Object> map) {
		return deviceAdminDao.selectDeviceList(map);
	}

	@Override
	public void deleteDevice(Map<String, Object> map) {
		deviceAdminDao.deleteDevice(map);
	}

}
